package cn.zwx.distributed.svc.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * DB WorkerID Assigner for UID Generator
 * @author zhangwenxue
 */
@Data
@TableName("worker_node")
public class WorkerNodeEntity implements Serializable {
    /**
     * auto increment id
     */
    private Long id;

    /**
     * host name
     */
    private String hostName;

    /**
     * port
     */
    private String port;

    /**
     * node type: ACTUAL or CONTAINER
     */
    private Integer type;

    /**
     * launch date
     */
    private Date launchDate;

    /**
     * modified time
     */
    private Date modified;

    /**
     * created time
     */
    private Date created;

    private static final long serialVersionUID = 1L;
}